// 板载User LED为PB13
#define LED_USER PB13

uint32_t count = 0;

// 初始化
void setup() {
  Serial.begin(9600);
  pinMode(LED_USER, OUTPUT);
}

// 循环
void loop() {
  count++;
  Serial.println(count);
  digitalWrite(LED_USER, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(1000);                       // wait for a second
  digitalWrite(LED_USER, LOW);    // turn the LED off by making the voltage LOW
  delay(500);                       // wait for a second

  for(int i=0;i<5;i++) {
    digitalWrite(LED_USER, HIGH);   // turn the LED on (HIGH is the voltage level)
    delay(100+i*20);                       // wait for a second
    digitalWrite(LED_USER, LOW);    // turn the LED off by making the voltage LOW
    delay(100+i*20);                       // wait for a second
  }
}
